allow '0' vals to be set. fixes #646