remove copying of data via JSON since it ignores methods and doesn't work for cyclic data