* started to add nacl support