making add_resource_meta more robust to v0.0 syntax