update scripts compile with -r