fix async issues with dazzle api