refactor preprocessing architecture allowing source code to be executed directly