create file and map structure