refactored device finding logic - now real devices are supported as well in standalone server.
refactored device finding logic - now real devices are supported as well in standalone server.