pass the parent to the pre/post funs