Functional and Architectural adaption in pervasive computing