update the initizer so that we can specify different url for testing purpose