file opening in childInit