use gb_trees instead of proplists