Prepareing files