test globals break things - fix