add a parameter to the after callback
fix postgres array type bug