errors only show up inthe main contract class