setup proxy based on desired capabilities #316