add rudimentary log support