added taskmanager check