added the crypt for put and more tests