add partial support for firefox