protect globals