fixed paths and foreach loop