refactoring to use new Processing library template