added automatic promisification of NodeJS style functions