change file test to exists test for NAT check