added program that handles files, to debug segfault