start of formation deployment code