messing with module pattern / promises