refactored method lookup into a closure module
added usage to several functions.