API: change pool on the fly