changing interface, added debug prints
basically this is a commit that saves the current state
make it easier to test