basic msg communication and parsing implemented. TODO tailing \n in stdin