re-arrange pub/priv in box creation