before commit to cn server