server code optimization
remove unused cmd options