open needs to be binary