need to share globals and locals