adding end family scripts