re-work around the new nexus-staging plugin API
refactor for clarify