added process files with init and global variables