replaced depricated method
removing chaff
upgrading the process status logic