update demo to include distance module exceptions