adjustments for npm publish
deal with embedded objects in a simple way for now