remove sarules code and fix sa-update