validation support for the system
finally solved the newline problem...very very hackily