implemented splitting scripts into scenes