go threaded
make it work using multiple threads to handle the requets

default debuglevel is now 0
minor fixes to handle some edge cases