preliminary file setup