change compile format to include  in val, isec, ifvar. add scopes in runtime context