stopped exporting self and some other variables to global ctx