stages should be an object