callback for filename generator