use signed char rather than plain char for int8_t