input.detach -> input.remove in utils.fileInput()