Fix import to use promises