add missing find_attribute func