convert standard input of SAM into BXT5