make sure files are created in the right order