solved issue of wrong routes with multiple sub-directories