add deepEquals and deepHash
check for isMethod if getMethod is not found