added functions to search, security