fix typo of model name
refactor lib api
add url prefix to global