adjustments to run. get_hardware() was reimplemented, next step is to refactor javascript hardware management.