implemented MODE restartup
refactoring