use err/warn from the C library