add type for script