working version with support for gerrit 2.5.1