fix - accept three args in add_action