convert pail functions to include dirs