curses for remote console, interface for remote console, fixed some bugs