moved contiki code to activator