add adaptable interface,move path based handler to configuration
package.