remove unnecessary/early apiurl assignment