updated to ignore kernel objects etc