private constants to get loaded first

Moved variables that are constant before plugin func to evaluate them
only once and always before they are used
Merge pull request #25 from Djemo/master

solves issue #23