add some debugs to test functionality