add pgTypes
fix Case and Service types