fixed race on create master, added some logging, go fmt