a solution for the async issue (probably not 'the' solution)