added separate method for serving valid files to client