this was a pretty bad existing bug in the code.