forgot to handle scoping for function/class declarations themselves