refactor handling cluster message byte order