add some scripts and template