add a demo and test for some future
fix align center bug