added possibility to change api urls