moved slave pruning to client.js