two scripts that make dealing with the stages easier