split processing apart into separate files
cleanup