building package functions, label switching

and post proc