set async to false