simplify the pool.afterCreate script