fix pooling-options (it was only setting the first value) and change the api from vectors to maps