Application required in tac file

the tac file requires the variable 'application' to exist, moving this
back to the tac file.