reads from udf if exists