generalized the base url so it works everywhere