added normalizeArgs