added code to look for missing parent paths