fixing a weird error with static variables and such...resolved the issue.