change clog to cout so log can be redirected in shell