fixed potential for filenotfound crash