add binary option to sam writer