added bare metal support