main program tweaking