implementation of log streams