handle when params don't respond to to_hash