dealing with some weirdness, debuging enabled