many bugfixes and modernizations for new codebase
all files now point to ./ directory by default