add branchcount option
updated to 060B code
use ScoopApp module directly