do some basic logging - TODO find a nice standardized format