[class] chaining methods without exporting