separated url prefix into config factory for easy customization