bind model instance context to derive functions
Merge pull request #17 from nlf/master

bind model instance context to derive functions