modify start.py to handler online & offline mode for firefox.