works now on web subpathes (localhost/project/page)