parsing foo while; some error detection