stockpiles: pass correct filename