add non-console version of main file