improve delimiter detection