breaking down scripts