quite a few changes to accomodate logging for UW study