refactor remove function
set optionally sync_package
fix build specific branch