fixed encrypt when no groups.  Added log messages for flag