exporting promiseArray with proper import