mostly finished associations
fixes bug in belongs_to