add scripts for template and longitudinal pipeline