convert to logger (untested) refs #18