how do you attach to ui-datepicker events

how do you attach to ui-datepicker events

I am working with the experimental ui-datepicker,  but when i call the datepicker() function of the input control, it screws up the rendering of the picker.

$("#myPicker").datepicker({
      onSelect: function(dateText, inst) { ... }
};
I can't seem to bind to the events any other way.

Thanks.