added _to_oid function
started get_length implementation