manage agent's directories