settle runing file functions