refactored processtools