refactor of device creation
refactor of device creation (fixed)
forgot files
dynamically add/remove devices