refactor to reduce log overhead which was slowing things down
losg
docs