fix distance matrix problems
fix key for property caching
distinguish between debug and verbose to reduce output