allow null as the value. fixes #1