file and structure setup