fix filenotfound errors for slave