multiprocess for output and auto compile