Expose some methods so I can test/develop an async version in scala