make config more flexible