fix sam/cram input interface