added exception for missing pages