updated stage scripts