support for a threaded handler
refactor client
general fixes