add getAction and logAction methods