fix some import bugs and set up url config