Top level non-null variables are null

made all the involved top-level variables lazy and it seems to work. still not sure why it cannot handle variable dependencies without making them lazy and their values being null as a result.
thank you btw!