changed code to work cross platform...
check ofcourse is still a whining little bitch!