still need wait and resume