avoid using global variables
Cosmetics
use Unix EOL encoding