few helpers for async code