add mainfile
add main, modify mainfile, modify delete