add err.h to includes