remove keys from attributes, move to custom json