use map to track stat commands