add some code in scripts