add print feature to tinyos