use params and do not run in CLI mode