added option to set a callback to retrieve the input