cleanup label handling