finished implementation of local switching; removed bugs and adapted conversion functionality between dll models.