added methods to initialize with base urls