build from JSON working

fixed refactor errors and test basic object clone+build