preferences fixes.
messenger.py improvements