small refactors to implement async api