added basic ncurses interface for server