made buildBehavior public to fix issue#56