added proper returns type, move the auto-prune in v1.1 api