global variable wierdness
stuff