use pool to handle processes