added process counter, removed old test functions