cleaned up lambda cname mangeling by moving it into the Scope class