added single threaded mode for log