deploy optimization