bug fixes in new API
source/sink -> reader/writer renaming