adds main program