extending checks and fixing html file while doing so..