basic scalar udf support