global env setup (kind of)

its completely inefficient but it kind of works for now I believe