more idiomatic method invocation and coercion to path, as suggested