added logger class for debugging
improved handling of jobs by servers