i think i made it work

- modify 'filename' so it's going for the real file. it might need '../' in front to go for the file in root.
- i moved the insults before the _if_, now it should do the proper checking.