use single object for globals