hopefully definitely fix memory issue in web interface