making config more general