functiondata lookup_or_create, plus client example