compiling to a file