use a resolver to work out the next stage