Adapted all necessary paths in mode 1 -output to deal with  different static content location