get_metadata moved to service