finally prototype chain recreation for mock objects seems to work.