add method option to dispatcher.pm
prettify code