fix is_class_method (needs revision)
don't free last (needs revision)