resolve path from input