more work on firefox compatibility