add dynamic kernel methods faking and restore