factorize settings
fix youtbe key import