initial import of worldmanager code from LinearLogic