added templates for device detection