fix production vs local settings