functional for load and install patch