adde main funcs
commit