replaced hardcoded settings with typconfig-based