fix stupid bug
implemented error hinting and extracted a function to parse columns