better main method?