cleaned up converter and scanner to run as thread and on all devices