made config more general