lib: support stock outflows