better release_stage discovery