written by john brynte turesson, 2012 DEBUG: