add start of main code