rebase option and clean packages