fixed several bugs
relative root url working