fixed local file check