fixes #1: when a new device is added, the console did not work
convert indentation to spaces
convert indentation to spaces