modify the length of the BOP message to be dynamically set depending on the size of the metadata