note to self: get a debugger