Somehow cmds.sets() for attaching the ocean_srf to deepesh's ocean shader shadingEngine wasn't there that's why I was wondering why the heck when at the end of shader rebuild, when "delete unused node" was used, all the ocean shader always get deleted... this is now resolved. Even cleaned-up the ocean attach code for a bit.