added == and hash for handles based on pointer