use bytearray if present in the system