change order of modes.  add ~/log directory.