add binary data support