added some more debugging, half assed debugging