add fetch_class fetch_func