fix bugs when used to serve / as well as /home
validation fixes, annotate markup