re-fix to read/write binary handle data