add timeout of 10 seconds when reading file