file detection wasn't really helping anything, so I removed it