refactored the scripts/script templates so that the template only uses lines