added search function, returns object decoded from the amazon envelope