made recreate_projects command more robust