fixed some bugs in the middleware connector
version upgrade