add console mode