integrate pkg exists into world

closes #30