file based magic