align middle, patches #27

had to cherrypick. Now i know how to cherry pick.