make it compatible with zero down-time deploy