improve patch method
add auth function to package_patch action