[ADD] elasticity in atomic object factory
[FIX] restructure the code of AtomicObjectFactory