add loadStream method