added radio control code