added better messaging for non-existent files