added TCP_NODELAY option
started plugin refactoring