fixed bug with promisify and optional args