a common userdata api