added ext auto detect and file-size compare if file exits in local