extract some methods for 002
Merge branch 'master' of github.com-lancefisher:lancefisher/bcode2013-scaffold