serial mode added to master branch