add main method, screw the framework