refactored
started to change ldapsearch