preserve source name when merging class data; fix typo in method name