static variables should be static everywhere. sigh.