adjusted nivo script execution