wrote struct parsing code, it might even work