extracted api credentials to settings, added domain customization