apache connection rework