add validation checks & multiple bcasts support

line 37 # fix issue with getting end index if start index missing needs
solving