replaced returned promise by curried module