modify astream size and offset interfaces
rebuilding tstream interfaces
add stream base interfaces