changed project argument to resource for clarity