add prerequisites and initial the file