add level loading
minor fixes