made compatible with firefox