fixed production url, cleaned up template for variables