cleaned up mesh stuff