working on making URL parser centralized to API