moving this check before complex ops
checking authorization and various cleanup
patch releases and update packages
patch updates