added https://github.com/gatapia/nclosure support