little bit of refactoring for socket
startup made executable
dynamic loading of plugins