merge serial echo and mac env. branch :)