finalized logging functionality (hopefully)
merge, hopefully