when the localfile is .,  will abort. replace e.message with e