now works somewhat OK in firefox