added resume flag