added basic metaball handling