remove repl code from source file