added reset functionality
offline mode