common functions
cleanin up
encryption