url mapping enhancement and refactoring
add the license