minor edits

in ‘switch not found’ replaced hardcoded filename with __file__