included all the level loading stuff written by thomas weiner