fixed problem where passing filename to convert was a nonexistent file