added connection window size
logger improved
code refactoring