more fixes, pool sample works fine now