tinyos adaptations (deprecated)