add muffin label generation, clean up some attributes