[feature] support nested params

Fixes #4