polished plugin support. various bug fixes. new includeModel function