use handler instead of path according to Chain API
Merge pull request #1 from lpave/master

use handler instead of path according to Chain API