setting up initial stages to run