manage cmd entry point