Bug fixed and server instrumented for exceptions
Also changed dict in group function to gb_trees