added basic auto-play capabilities