add astream file
rename gstream macros
add astream interfaces