add main script to patch