- scope.h: moved long functions to scope.cc