encrypt/decrypt moved to afstring - load now supports dynamic device type detection