hack fix to s/read functions