add support for `offsetScript`