working on setup for the toplevel compiler environment; some undefined functions in this commit