fixes for IE support + disable debug output