add system independent newline char
make server useable