changed file structure and added mime