added get streams function