add main function to init the command