FYI
I ended up pulling the application into 3 seperate application (there were three parts to it), got each of them working fine, and then merged them all togeather. At that point the problem kinda went away. not real sure why, but I think it has to do with the order that I was including things.