Bugfix: missing application of varhandler also

extended varhandler a bit