fix return types in config