re-enabling server mode and run mode