debug for regist_patterns.rb