added NSUserDefaults stuff