get rid of apiurl struct