automatically call .then(console.log) if result is Promise
return promise's value instead of console.log