add acl search function
refactoring