globalize some vars