add resume filename option to functions

add resume filename option to functions