implemented basics of device control (improved interface)