prepare file after initialization