before deploy record