get type to script