add a little logging and fix the concurrent running of gocog.