fixed bad filename exception. also no longer require -f switch.