minor cleanups fixing unset variables and adding the logs folder