more work on globals