add package pre and post build callbacks