make some vars static. other random sparse stuff.