added protection against too long modification host