bug fixes for "extension" methods