default function for applying patches
use the default applyPatch if none provided
shortcut to attach a client to an object