modularized basePath things, better directory structure
use simple ids for "src" (now srcid) and parsed urls for "from"
small function separation