level editor patch from Richard