add remote file existance checking