configs now passed as argument