get metadata from outside of the listener