added logger
make everything unix eol
use new logging function