implemented core functionality for tracking actions