enable type and pool_type as param