added an api to construct bodies.