firther improving external staticpages error handling