refactored module and connectionHandler init. fixed seq fault caused by ...

...server context nesting