devices classes, hanlders and emmitters now working.