add devicemanager support
Still hacky but working
remove hardcoded paths, add options