chained encrypt and send, fix bug