basic implementation for task stats