better logging of errors
handle draws