better debug checking
remove ie8 support