adding some bsv wrapper code