adding stages
added stages management