shebang and cleanup