add versions, versions-apps and versions-all functions