before api
actions