updated by gabuyd from the cloned Red Apple