switching to echo statements throughout
isset() calls plus unix line endings