added support for resume