updated to work with the latest version of HandlerSocketLibrary