added file exists check during require