put the public functions in an object