set threads and timeout via mojo, cleanup logging