improved serilizing objects, createn node and entryPoints map