moved file creation to NewServer method and fixed misc build error with unused variable for interrupts