remove commented code
move file opener to field so that it rememebers the path