updated new_resource handling