fix 20 bugs and interoperablabla with firefox