clean up old code. go back through logs to find relevent portions, if needed