pass callback functions in options hash