refactored queue
some ie specific fixes