add statistics
add a command line argument of controller file