use pool to log optimize