befer changing to async mode
after changing to async mode