use function to get conf