habitat lookup functions