add error_codes; add empty managers; add models