debugging the crap out of this thing