fixed resume bug, added config file support
fixed resume bug, added config file support