move into global
print only if asked to
add unittests for Job and Log classes