small patch to get metaballs working
minor changes