added getting metadata