playing around with globals and externs