simplify init, handle online/offline better, seamail checking, other tweaks