Read values implementation

- read as boolean
- portability refactoring