files are output to correct locations