more work on peripheral connection. does not yet work form periferals view