#2 one method that autodetects path vs. file