make sure to write output file relative to project path