working
remove private logger
clean up a bit for peer review