added support for automatically detecting a product ID for a controller with no product ID specified.