bugfix for when file is called from another path