make config more generic