make actions synchronous