Issue 181 promisify apis