handle different base urls