For now flags can be set for world. Fix few bugs, better error messages.