get and send metadata