adding hook for configuring custom types