added catch for loader (index.html)