fix #75: resolve promises to allow code chaining