add prerotate stuff from wheezy