solved the siteurl problem. this also fixed the home link problem.