clean up main script; group billing scripts