fix now() call, add buffering for subprocess call;