fix btrbk timing issue. improve email stuff