try putting pool stuff back in main