fixing some of the funkyness with the array parsing