fixed a <> bug and added some debug output