add d script for updating file