exposed configure to configure pre post and error callbacks