fixes various issues, splits config out

paths can have spaces too