modify devwdg and script