switch from test to build to output file