deprecate SharedArray
minor chagegs
minor fix