issue 3297 partial backout

https://code.google.com/p/otwarchive/issues/detail?id=3297