fix format and ie8 fixes