improve gateway logs
fix login timeout
fix login timeout