refactored action log, fixed a few bugs