exportreferences works with async, and calls flush() on linked modules, working on importreferences