console version can be used directly