open in binary mode