use Stages class in analyse script