more work on bin protocol