various bugfixes (static, production config)