changed default lifespan and max idle parameters