fixes and updates on ie8/es5 compatibility