one to many splitting scipt