add module operator, refactoring server and terminal
all works