fix main.include version branching
add main.define_method