implemented autoplay from issue #67