* large code refactoring: common routines are moved to lib NPEConnector
