plist and settings code to red file