pass through custom metadata and accept service env var