turn off logging, but probably needs to get fixed
break code down into smaller chunks