major hack to get web mode to work correctly, and indeed it does