refactor directory links response