build chain working