trying to eliminate hard coding of url