Add MIME check
mucking with PHP
merging