api: set algorithm properly on addpool.