fixed api urls resolving