implement local tracking