added ability to handle missing files