allow callback for setting script path