finished mutliflag and improved loading html files