ypool api examples and helpers