fixes and tests
add deprecated debug()