simplified server for smartSub, refactoring...