fix the new initializer; class_name for relations is now optional