make nightingale return a function.