got global structs working