set_metadata moved to service