fix bool check
remove debug logs
reader/writer: refactor configuration