mac compatibility for clear and server compatibility for startw, internetrc