automatically call .then(console.log) if result is Promise