added process checking