fixing up logger and other things