upgrade

- appending to files
- iglob where possible
- truncating to any length