patch apc setup