add BIGENDIAN support