import is now a promise, better error handling