added initial cfg construction