update paths and relevant counters