fix action key in update function
dealwith specific case for action in json in update
improve package form (draft)