Reduce add, sub, inc and dec to add
refactor shm into collector and cleanup collectors