add scripts and explanation