use tools.reader to safely interpret values
Merge pull request #1 from stuarth/master

use tools.reader to safely interpret values