Make eric importer synchronous using promises