a little bit of logging stuff. make more official later