ext: add c improvements