resolve path
failsafe