code refactorization
Docs for flag newest_tag