fixes #4; fixes #5: stop using eval

Fixes #4. Fixes #5.