started adding a scope checker at compile time