support for async methods fixes #3