Fixed script to support new logging and loggin yaml load