implement the upstream action