stub binmode