initial steps after fork
file name change, #EOF removed