moved prj creation up