clean the patch, add some params for loop
more enhancements
add layers and blend params