use func in configuration