ie8 compatibility, minor bugs