generate and send pass