adapt tower example to commit 1eed911f