add get order and get secret metadata functionality