make it convert to uint8array if buf[idx] does not work
add travis, ci.testling, etc