dont rely on script_type