pass resource into conditions parser