fixed errors with cap sending files not requested by client