fix a number of bugs and add the no cleanup attribute for help with system debugging
encryption done