create sync and async actions