use lookup-path to ensure that filepaths exist and are correct before they are returned