made params recursively flatten into signable object