fixed chaining for public functions