adapted to the new visionloc library