made building callbacks more convenient