enable to run on cli and non cli