add scripts and fix path bug