init state for all files