add extend module
implement PATCH handler