move features out of linux to common code