integrated all needed locsimDesmMiddleware.dll functions