added timeout to REST clients and configured file listener