- added helper functions
- remove old output files