add exception handling for missing index.html