move main method back to where it belongs