update to deal with latest bin protocol