setup and deployment fixes
fixed cloneObj circular alloc, do it shallow