pruning seems to work for encode also with -e flag