added processing functions framework for cli use