worked out script components